<?php

namespace app\common\model;

use think\Db;
use think\Model;

/**
 * 商品模型
 */
class Shop extends Model
{
    protected $auto = [];
    protected $insert = ['createtime', 'status' => 1];
    protected $update = ['changetime'];

    protected function setStatusAttr()
    {
        return 1;
    }

    protected function setCreatetimeAttr()
    {
        return time();
    }

    protected function setChangetimeAttr()
    {
        return time();
    }
}
